<!--#include("./header.html")-->

<!--%import("filter/delete_checked.xml")-->

<style type="text/css">
.center { text-align: center; }
</style>

<div class="link"><a href="http://bit.ly/a/summary" target="_blank">{$lang->bitly_summary}</a></div>

<!-- 검색 -->
<div class="fl">
	<form action="./" method="get" class="adminSearch">
	<input type="hidden" name="module" value="{$module}" />
	<input type="hidden" name="act" value="{$act}" />
		<fieldset>
			<label for="title">{$lang->title}</label>
			<input type="text" name="title" id="title" value="{htmlspecialchars($title)}" class="inputTypeText" />
			<span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
			<a href="{getUrl('','module',$module,'act',$act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
		</fieldset>
	</form>
</div>

<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<input type="hidden" name="page" value="{$page}" />

<!-- 모듈 선택 -->
<div class="fr">
	<span class="button red"><input type="submit" value="{$lang->cmd_delete_checked}" /></span>
</div>

<!-- 목록 -->
<table cellspacing="0" class="crossTable clear">
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
<thead>
	<tr>
		<th scope="col"><div>{$lang->no}</div></th>
		<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll(); return false;" /></div></th>
		<th scope="col" class="wide"><div>Links</div></th>
		<th scope="col"><div>{$lang->bitly_info}</div></th>
		<th scope="col"><div>Date</div></th>
	</tr>
</thead>
<tbody>
	<!--@foreach($bitly_list as $no => $val)-->
	<tr>
		<td class="number center">{$no}</td>
		<td class="center"><input type="checkbox" name="cart" value="{$val->bitly_srl}" /></td>
		<td class="left">{$val->title}, {$val->short_url}, <a href="{$val->url}" target="_blank">{$val->url}</a></td>
		<td class="center"><a href="{$val->short_url}+" target="_blank">{$lang->bitly_info}</a></td>
		<td class="date center nowrap">{(zdate($val->regdate,"Y-m-d\nH:i:s"))}</td>
	</tr>
	<!--@end-->
</tbody>
</table>

</form>

<!-- 페이지 네비게이션 -->
<div class="pagination a1">
	<a href="{getUrl('page','','module_srl',$module_srl)}" class="prevEnd">{$lang->first_page}</a>
	<!--@while($page_no = $page_navigation->getNextPage())-->
		<!--@if($page == $page_no)-->
			<strong>{$page_no}</strong>
		<!--@else-->
			<a href="{getUrl('page',$page_no,'module_srl',$module_srl)}">{$page_no}</a>
		<!--@end-->
	<!--@end-->
	<a href="{getUrl('page',$page_navigation->last_page,'module_srl',$module_srl)}" class="nextEnd">{$lang->last_page}</a>
</div>